import request from '@/utils/request'

// 竞买方、委托方注册 http://mpw.com/api/Login/celogon?
export function celogon(params,data) {
  return request({
    url: '/api/Login/celogon',
    method: 'get',
    params,
    data
  })
}
//获取验证码接口 http://mpw.com/api/common/getCode?mobile=17600025612
export function getCode(params) {
  return request({
    url: '/api/common/getCode',
    method: 'get',
    params
  })
}

//竞买方登录 http://mpw.com/api/Login/bidderLogin?username=test&password=asdasd
export function bidderLogin(data) {
  return request({
    url: '/api/Login/bidderLogin',
    method: 'post',
    data
  })
}
// 竞买方手机号验证码登录http://mpw.com/api/Login/bidderMobileLogin?mobile=17600025612&code=138438
export function bidderMobileLogin(data) {
    return request({
      url: '/api/Login/bidderMobileLogin',
      method: 'post',
      data
    })
  }


  //获取用户信息 http://mpw.com/api/User/getUserInfo
  export function getUserInfo(params) {
    return request({
      url: '/api/User/getUserInfo',
      method: 'get',
      params
    })
  }
// ================================个人中心===================================================
// 实名认证  http://mpw.com/api/bidder/authentication?uid=1&name=郭文浩&card_num=130433255500001111&card_pic1=/img/file&card_pic2=/img/file
export function authentication(data) {
  return request({
    url: '/api/bidder/authentication',
    method: 'post',
    data
  })
}
//个人中心修改密码 http://mpw.com/api/bidder/changePassword
export function changePassword(data) {
  return request({
    url: '/api/bidder/changePassword',
    method: 'post',
    data
  })
}
//获取邮箱验证码 http://mpw.com/api/Common/getMailboxCode?email=1444001019@qq.com
export function getMailboxCode(params) {
  return request({
    url: '/api/Common/getMailboxCode',
    method: 'get',
    params
  })
}
//绑定邮箱 http://mpw.com/api/bidder/bindingEmail
export function bindingEmail(data) {
  return request({
    url: '/api/bidder/bindingEmail',
    method: 'post',
    data
  })
}
// 修改绑定的手机号 http://mpw.com/api/bidder/modifyBindingPhone
export function modifyBindingPhone(data) {
  return request({
    url: '/api/bidder/modifyBindingPhone',
    method: 'post',
    data
  })
}

// 我的竞拍 http://mpw.com/api/bidder/myAuction?id=1&type=1
export function myAuction(params) {
  return request({
    url: '/api/bidder/myAuction',
    method: 'get',
    params
  })
}
// 资质信息uploadQualifications user/uploadQualification bidder/uploadQualifications
export function uploadQualifications(data) {
  return request({
    url: '/api/user/uploadQualification',
    method: 'post',
    data
  })
}
//资质回显 getQualificationInfo 
export function getQualificationInfo(data) {
  return request({
    url: '/api/user/getQualificationInfo',
    method: 'post',
    data
  })
}
// 我的关注 http://mpw.com/api/bidder/myAttention?id=1
export function myAttention(params) {
  return request({
    url: '/api/bidder/myAttention',
    method: 'get',
    params
  })
}
//实名认证信息回显 http://mpw.com/api/bidder/realNameData?id=2
export function realNameData(params) {
  return request({
    url: '/api/bidder/realNameData',
    method: 'get',
    params
  })
}
// 消息提醒 /api/Home/messageList
export function messageList(params) {
  return request({
    url: '/api/Home/messageList',
    method: 'get',
    params
  })
}
// 点击已读/api/Home/click_read
export function click_read(params) {
  return request({
    url: '/api/Home/click_read',
    method: 'get',
    params
  })
}
// ===================================================================

// 帮助中心 http://mpw.com/api/HelpCenter/helpCategoryList
export function helpCategoryList(params) {
  return request({
    url: '/api/HelpCenter/helpCategoryList',
    method: 'get',
    params
  })
}
//获取帮助中心内容 http://mpw.com/api/HelpCenter/helpContent?help_id=1
export function helpContent(params) {
  return request({
    url: '/api/HelpCenter/helpContent',
    method: 'get',
    params
  })
}
export function bidderLogout(params) {
  return request({
    url: '/api/Login/bidderLogout',
    method: 'get',
    params
  })
}
//获取成交金额
export function amount(params) {
  return request({
    url: '/api/home/amount',
    method: 'get',
    params
  })
}
// =====================================================================================
//验证手机短信的验证码
export function verifyCode(data) {
  return request({
    url: '/api/User/verifyCode',
    method: 'POST',
    data
  })
}

//忘记密码
export function changePasswordUser(data) {
  return request({
    url: '/api/User/changePassword',
    method: 'POST',
    data
  })
}



